﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
    public partial class frmBaoCaoCongNo : Form
    {
        public frmBaoCaoCongNo()
        {
            InitializeComponent();
        }

        private void dgvDanhSach_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void btnLuu_Click(object sender, EventArgs e) {
            frmRptBaoCaoCongNo frm = new frmRptBaoCaoCongNo();
            frm.Month = this.cbxThang.SelectedIndex + 1;
            frm.Year = Convert.ToInt32(this.tbxNam.Text);

            frm.Show();
        }

        private void frmBaoCaoCongNo_Load(object sender, EventArgs e) {
            int[] thang = new int[12];
            for (int i = 0; i < thang.Length; i++) {
                thang[i] = i + 1;
            }
            cbxThang.DataSource = thang;   
        }

        private void btnThoat_Click(object sender, EventArgs e) {
            Close();
        }
    }
}
